#ifndef XCAMERA_RECORD_H
#define XCAMERA_RECORD_H
#include "xtools.h"
#include <string>
class XCameraRecord : public XThread {
public:
  void set_rtsp_url(const std::string &url) { rtsp_url_ = url; }
  void set_save_path(const std::string &save_path) { save_path_ = save_path; }
  void set_file_sec(int s) { file_sec_ = s; }

private:
  void Main() override;
  std::string rtsp_url_;   //
  std::string save_path_;  // 存储的根目录
  long long file_sec_ = 5; // 多少秒创建一个文件
};

#endif // XCAMERA_RECORD_H
